import request from "@/utils/request";
const fetchItems = (params = {}) => {
  return request.get('/itemLists', { params })
}
const addItem =  (params = {}) => {
  return request.post('/addItem', params)
}
// 获取商品详情
const fetchItemDetail =  (params = {}) => {
  return request.get('/getItemDetail', { params })
}
// 修改商品
const updateItem = (params = {}) => {
  return request.put('/updateItem', params)
}
export {
  fetchItems,
  addItem,
  fetchItemDetail,
  updateItem
}